import { request } from '@/utils';
import { getRestBaseUrl } from '@/config';

// 查询
export const loadListStore = (queryForm, page = { pageSize: 10, pageNum: 1 }) =>
  request({
    url: `${getRestBaseUrl()}/iop/adjustService/list`,
    method: 'POST',
    data: {
      queryForm: queryForm,
      page,
    },
    timeout: 3 * 60 * 1000,
  });

// 查询所有蜂窝
export const loadListCellular = () =>
  request({
    url: `${getRestBaseUrl()}/iop/cellularService/listAll`,
    method: 'POST',
    data: null,
    timeout: 3 * 60 * 1000,
  });

// 审核列表 - 一键审核
export const oneKeyAudit = taskIds =>
  request({
    url: `${getRestBaseUrl()}/iop/adjustService/oneKeyAudit`,
    method: 'POST',
    data: { taskIds },
    timeout: 3 * 60 * 1000,
  });
